//
//  BuyingalistViewCell.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/3.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit

class BuyingalistViewCell: UITableViewCell {
    

    @IBOutlet weak var ON: UILabel! // 挂单号
    @IBOutlet weak var OP: UILabel! // 挂单价格
    @IBOutlet weak var OQ: UILabel! // 挂单总量
    @IBOutlet weak var SQ: UILabel! // 剩余挂单量
    @IBOutlet weak var BI: UILabel! // 挂单方代码
    @IBOutlet weak var OT: UILabel! // 挂单时间
    @IBOutlet weak var tj: UIButton! // 摘单
    
    
    // MARK: - 自定义属性
    var ViewModel : Buyingalist? {
        
        // 属性监听器
        didSet {
            // 1. nil值校验
            guard let ViewModel = ViewModel else {
                return
            }
            ON.text = ViewModel.ON
            OP.text = ViewModel.OP
            OQ.text = ViewModel.OQ
            SQ.text = ViewModel.SQ
            BI.text = ViewModel.BI
            OT.text = ViewModel.OT
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
